@extends('public.father')




@section('css')
    <link href="/templates/hd/assets/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
    <link href="/templates/hd/assets/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">
    <link href="/templates/hd/assets/css/personal.css" rel="stylesheet" type="text/css">
    <link href="/templates/hd/assets/css/systyle.css" rel="stylesheet" type="text/css">

@endsection
@section('content')
<!--头 -->
<div class="nav-table">
    <div class="long-title"><a href="/"><span class="all-goods" style="color: white">全部分类</span></a></div>

</div>
<b class="line"></b>
<div class="center">
    <div class="col-main">
        <div class="main-wrap">
            <div class="wrap-left">
                <div class="wrap-list">
                    <div class="m-user">
                        <!--个人信息 -->
                        <div class="m-bg"></div>
                        <div class="m-userinfo">


                            @if(Auth::guard('shop')->check())

                                <div class="m-baseinfo">
                                    <a href="information.html">
                                        <img src="/templates/hd/assets/images/getAvatar.do.jpg">
                                    </a>
                                    <em class="s-name" style="margin-left: 15px">{{Auth::guard('shop')->user()->email}}<span class="vip1"></em>
                                    <div class="s-prestige am-btn am-round">
                                        </span>会员福利</div>
                                </div>

                            @else

                                <div class="m-baseinfo">
                                    <a href="information.html">
                                        <img src="/templates/hd/assets/images/getAvatar.do.jpg">
                                    </a>
                                    <em class="s-name" style="margin-left: 15px">您未登录</em>
                                </div>

                            @endif

                            <div class="m-right">

                                <div class="m-address">
                                    <a href="address.html" class="i-trigger">我的收货地址</a>
                                </div>
                            </div>
                        </div>


                    </div>
                    <div class="box-container-bottom"></div>

                    <!--订单 -->
                    <div class="m-order">
                        <div class="s-bar">
                            <i class="s-icon"></i>我的订单
                            <a class="i-load-more-item-shadow" href="order.html">全部订单</a>
                        </div>
                        <ul>
                            <li><a href="order.html"><i><img src="/templates/hd/assets/images/pay.png"/></i><span>待付款</span></a></li>
                            <li><a href="order.html"><i><img src="/templates/hd/assets/images/send.png"/></i><span>待发货<em class="m-num">1</em></span></a></li>
                            <li><a href="order.html"><i><img src="/templates/hd/assets/images/receive.png"/></i><span>待收货</span></a></li>
                            <li><a href="order.html"><i><img src="/templates/hd/assets/images/comment.png"/></i><span>待评价<em class="m-num">3</em></span></a></li>
                            <li><a href="change.html"><i><img src="/templates/hd/assets/images/refund.png"/></i><span>退换货</span></a></li>
                        </ul>
                    </div>
                    <!--九宫格-->
                    <div class="user-patternIcon">
                        <div class="s-bar">
                            <i class="s-icon"></i>我的常用
                        </div>
                        <ul>

                            <a href="/templates/hd/assets/home/shopcart.html"><li class="am-u-sm-4"><i class="am-icon-shopping-basket am-icon-md"></i><img src="/templates/hd/assets/images/iconbig.png"/><p>购物车</p></li></a>
                            <a href="collection.html"><li class="am-u-sm-4"><i class="am-icon-heart am-icon-md"></i><img src="/templates/hd/assets/images/iconsmall1.png"/><p>我的收藏</p></li></a>
                            <a href="/templates/hd/assets/home/home.html"><li class="am-u-sm-4"><i class="am-icon-gift am-icon-md"></i><img src="/templates/hd/assets/images/iconsmall0.png"/><p>为你推荐</p></li></a>
                            <a href="comment.html"><li class="am-u-sm-4"><i class="am-icon-pencil am-icon-md"></i><img src="/templates/hd/assets/images/iconsmall3.png"/><p>好评宝贝</p></li></a>
                            <a href="foot.html"><li class="am-u-sm-4"><i class="am-icon-clock-o am-icon-md"></i><img src="/templates/hd/assets/images/iconsmall2.png"/><p>我的足迹</p></li></a>
                        </ul>
                    </div>


                    <!--收藏夹 -->
                    <div class="you-like">
                        <div class="s-bar">我的收藏
                            <a class="i-load-more-item-shadow" href="#"><i class="am-icon-refresh am-icon-fw"></i>换一组</a>
                        </div>
                        <div class="s-content">



                            @foreach($good as $v)
                            <div class="s-item-wrap">
                                <div class="s-item">

                                    <div class="s-pic">
                                        <a href="{{route('detail',$v['id'])}}" class="s-pic-link">
                                            <img src="{{explode(',',$v['pics'])[0]}}" alt="" class="s-pic-img s-guess-item-img">
                                        </a>
                                    </div>
                                    <div class="s-price-box">
                                        <span class="s-price"><em class="s-price-sign">¥</em><em class="s-value">{{$v['mallprice']}}</em></span>
                                        <span class="s-history-price"><em class="s-price-sign">¥</em><em class="s-value">{{$v['goodprice    ']}}</em></span>

                                    </div>
                                    <div class="s-title"><a href="{{route('detail',$v['id'])}}" title="{{$v['title']}}">{{$v['title']}}</a></div>
                                    <div class="s-extra-box">
                                        <span class="s-comment">好评: 98.03%</span>
                                        <span class="s-sales">月销: 219</span>

                                    </div>
                                </div>
                            </div>
                            @endforeach


                        </div>

                        <div class="s-more-btn i-load-more-item" data-screen="0"><i class="am-icon-refresh am-icon-fw"></i>更多</div>

                    </div>

                </div>
            </div>
            <div class="wrap-right">

                <!-- 日历-->
                <div class="day-list">
                    <div class="s-bar">
                        <a class="i-history-trigger s-icon" href="#"></a>我的日历
                    </div>
                    <div class="s-care s-care-noweather">
                        <div class="s-date">
                            <em>{{date('d')}}</em>
                            <span>{{date('l')}}-</span>
                            <span>{{date('Y-m')}}</span>
                        </div>
                    </div>
                </div>
                <!--新品 -->
                <div class="new-goods">
                    <div class="s-bar">
                        <i class="s-icon"></i>今日新品
                    </div>
                    <div class="new-goods-info">
                        <a class="shop-info" href="{{route('detail',$newpin['id'])}}" target="_blank">
                            <div class="face-img-panel">
                                <img src="{{explode(',',$newpin['pics'])[0]}}" alt="">
                            </div>
                            <span class="shop-title">{{$newpin['title']}}</span>
                        </a>
                        <a class="follow " target="_blank">关注</a>
                    </div>
                </div>

                <!--热卖推荐 -->
                <div class="new-goods">
                    <div class="s-bar">
                        <i class="s-icon"></i>热卖推荐
                    </div>
                    <div class="new-goods-info">
                        <a class="shop-info" href="{{route('detail',$remai['id'])}}" target="_blank">
                            <div >
                                <img src="{{explode(',',$remai['pics'])[0]}}" alt="">
                            </div>
                            <span class="one-hot-goods">￥{{$remai['mallprice']}}</span>
                        </a>
                    </div>
                </div>

            </div>
        </div>
        <!--底部-->


    </div>

    @include('public.aside')
</div>
<!--引导 -->
<div class="navCir">


    <li><a href="/templates/hd/assets/home/home.html"><i class="am-icon-home "></i>首页</a></li>
    <li><a href="/templates/hd/assets/home/sort.html"><i class="am-icon-list"></i>分类</a></li>
    <li><a href="/templates/hd/assets/home/shopcart.html"><i class="am-icon-shopping-basket"></i>购物车</a></li>
    <li class="active"><a href="index.html"><i class="am-icon-user"></i>我的</a></li>



</div>

    @endsection